package com.sproutcat.sample;

import org.springframework.util.StopWatch;

public class StopWatchSample1 {

    public static void main(String[] args) throws InterruptedException {
        StopWatch stopWatch = new StopWatch("Spring - StopWatch Sample");
        stopWatch.start("test01");
        Thread.sleep(5000);
        stopWatch.stop();

        stopWatch.start("test02");
        Thread.sleep(10000);
        stopWatch.stop();
        System.out.println(stopWatch.prettyPrint());
    }

}
